<template>
<ul>
    <li>编号：{{ id }}</li>
    <li>标题：{{ title }}</li>
    <li>内容：{{ content }}</li>
</ul>
</template>

<script lang="ts" setup name="NewsDetail">
// 开启router的props后省略
// import { toRefs } from 'vue';
// import {useRoute} from 'vue-router'
// let route = useRoute()
// let {query,params} = toRefs(route)

defineProps(['id','title','content'])

</script>